package com.example.myapplication.db.room.entity;




import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.math.BigDecimal;
import java.util.Date;


@Entity(tableName = "calculationParameters")
public class CalculationParameters  {

    @PrimaryKey(autoGenerate = true)
    private int id;
//    开始时间

    private Date startTime;
//    结束时间

    private Date endTime;
//    间隔时间，以毫秒为单位

    private Long intervalTime;
//    时

    private Long hours;
//    分

    private Long minutes;
//    有效时间 分钟
    private Long intervalMinutes;

    private Long seconds;
//    金额

    private BigDecimal amount;


    public CalculationParameters() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(Long intervalTime) {
        this.intervalTime = intervalTime;
    }

    public Long getHours() {
        return hours;
    }

    public void setHours(Long hours) {
        this.hours = hours;
    }

    public Long getMinutes() {
        return minutes;
    }

    public void setMinutes(Long minutes) {
        this.minutes = minutes;
    }

    public Long getIntervalMinutes() {
        return intervalMinutes;
    }

    public void setIntervalMinutes(Long intervalMinutes) {
        this.intervalMinutes = intervalMinutes;
    }

    public Long getSeconds() {
        return seconds;
    }

    public void setSeconds(Long seconds) {
        this.seconds = seconds;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
